package com.app.biz.domain;

import com.app.common.annotation.Excel;
import com.app.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * app聊天记录对象 biz_app_chat_msg
 *
 * @author ruoyi
 * @date 2024-09-09
 */
public class BizAppChatMsg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String baseId;

    /** 发送者ID */
    @Excel(name = "发送者ID")
    private String senderId;

    /** 接收者ID */
    @Excel(name = "接收者ID")
    private String receiverId;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String content;

    /** 消息状态，0-未读，1-已读 */
    @Excel(name = "消息状态，0-未读，1-已读")
    private Long status;

    /** 删除状态，0-未删除，1-删除 */
    @Excel(name = "删除状态，0-未删除，1-删除")
    private Long isDelete;

    public void setBaseId(String baseId)
    {
        this.baseId = baseId;
    }

    public String getBaseId()
    {
        return baseId;
    }
    public void setSenderId(String senderId)
    {
        this.senderId = senderId;
    }

    public String getSenderId()
    {
        return senderId;
    }
    public void setReceiverId(String receiverId)
    {
        this.receiverId = receiverId;
    }

    public String getReceiverId()
    {
        return receiverId;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setIsDelete(Long isDelete)
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete()
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("baseId", getBaseId())
                .append("senderId", getSenderId())
                .append("receiverId", getReceiverId())
                .append("content", getContent())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("isDelete", getIsDelete())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
